package com.foreverwin.mes.meapi.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import java.io.Serializable;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author Ervin Chen
 * @since 2020-03-23
 */
@TableName("VENDOR")
public class Vendor extends Model<Vendor> {

    private static final long serialVersionUID = 1L;

   @TableField("HANDLE")
   private String handle;
   @TableField("SITE")
   private String site;
   @TableField("VENDOR_CODE")
   private String vendorCode;
   @TableField("VENDOR_NAME")
   private String vendorName;
   @TableField("COMPONENT_CAN_BE_RECEIVED")
   private String componentCanBeReceived;
   @TableField("COMPONENT_CAN_BE_CONSUMED")
   private String componentCanBeConsumed;
   @TableField("MODIFIED_DATE_TIME")
   private Date modifiedDateTime;
   @TableField("CREATED_DATE_TIME")
   private Date createdDateTime;


   public String getHandle() {
      return handle;
   }

   public void setHandle(String handle) {
      this.handle = handle;
   }

   public String getSite() {
      return site;
   }

   public void setSite(String site) {
      this.site = site;
   }

   public String getVendorCode() {
      return vendorCode;
   }

   public void setVendorCode(String vendorCode) {
      this.vendorCode = vendorCode;
   }

   public String getVendorName() {
      return vendorName;
   }

   public void setVendorName(String vendorName) {
      this.vendorName = vendorName;
   }

   public String getComponentCanBeReceived() {
      return componentCanBeReceived;
   }

   public void setComponentCanBeReceived(String componentCanBeReceived) {
      this.componentCanBeReceived = componentCanBeReceived;
   }

   public String getComponentCanBeConsumed() {
      return componentCanBeConsumed;
   }

   public void setComponentCanBeConsumed(String componentCanBeConsumed) {
      this.componentCanBeConsumed = componentCanBeConsumed;
   }

   public Date getModifiedDateTime() {
      return modifiedDateTime;
   }

   public void setModifiedDateTime(Date modifiedDateTime) {
      this.modifiedDateTime = modifiedDateTime;
   }

   public Date getCreatedDateTime() {
      return createdDateTime;
   }

   public void setCreatedDateTime(Date createdDateTime) {
      this.createdDateTime = createdDateTime;
   }

   public static final String HANDLE = "HANDLE";

   public static final String SITE = "SITE";

   public static final String VENDOR_CODE = "VENDOR_CODE";

   public static final String VENDOR_NAME = "VENDOR_NAME";

   public static final String COMPONENT_CAN_BE_RECEIVED = "COMPONENT_CAN_BE_RECEIVED";

   public static final String COMPONENT_CAN_BE_CONSUMED = "COMPONENT_CAN_BE_CONSUMED";

   public static final String MODIFIED_DATE_TIME = "MODIFIED_DATE_TIME";

   public static final String CREATED_DATE_TIME = "CREATED_DATE_TIME";

   @Override
   protected Serializable pkVal() {
      return this.handle;
   }

   @Override
   public String toString() {
      return "Vendor{" +
         "handle = " + handle +
         ", site = " + site +
         ", vendorCode = " + vendorCode +
         ", vendorName = " + vendorName +
         ", componentCanBeReceived = " + componentCanBeReceived +
         ", componentCanBeConsumed = " + componentCanBeConsumed +
         ", modifiedDateTime = " + modifiedDateTime +
         ", createdDateTime = " + createdDateTime +
         "}";
   }
}